<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="page-view-size" content="1280*720">
		<title>special subject跳转页面</title>
		<!--外部JS-->
		<script type="text/javascript" src="../../utils/json2.js"></script>
		<script type="text/javascript" src="../../utils/jsrender.js"></script>
        <!--内部JS-->
        <script type="text/javascript" src="../../utils/topdraw.server.js"></script>
		<script type="text/javascript" src="../../utils/topdraw.config.js"></script>
		<script type="text/javascript" src="../../utils/topdraw.api.js"></script>
		<script type="text/javascript" src="../../utils/topdraw.probe.js"></script>
		<script type="text/javascript" src="../../utils/topdraw.hack.js"></script>
		<script type="text/javascript" src="../../utils/topdraw.utility.js"></script>
		<script type="text/javascript" src="../../utils/topdraw.page.js"></script>
		<script type="text/javascript" src="../../plugs/plug.scroll.js"></script>
		<script type="text/javascript" src="../../utils/jquery.min.js"></script>
		<style>
			*{
				margin:0;
				padding:0;	
			}
			body{
				background: #000;
				l-ine-height: 50px;
				color:#000;
				font-size: 20px;
			}
		</style>
		<script>
			window.$Page = new Page({
                properties : {
                    pageDIR : "pages/subject_template/",
                    pageURL:decodeURIComponent($URL.getQueryStringByName("pageURL")) || 'index.html',
                    iSubjectId:$URL.getQueryStringByName("subjectId")||$URL.getQueryStringByName("id")
                },
                /**
                 * 页面初始操作
                 */
                run:function(){
                    $Page.getSubjectDetail();
                },
                getSubjectDetail:function(){//获取pageURL
                    var oSubjectDetailParas = {
                        "subjectId":$Page.iSubjectId,
                        "start":"0",
                        "limit":"1"
                    };
                    var fnDone = function(){
                        $URL.forwardForget($Page.pageDIR+$Page.pageURL+(-1!=$Page.pageURL.indexOf("?") ? "&" : "?") + "subjectId="+$Page.iSubjectId);
                    }
                    $Network.request({
                        url : $Circumstance.TOPDRAW_API_SERVER+"Subject/List",
                        data : oSubjectDetailParas,
                        desc : "Subject Info",
                        success : function(oJSONResult){
                            $Page.pageDIR = $Config.SUBJECT_DIRECTORY_MAP[oJSONResult.resultSet[0].template_id];
                            fnDone();
                        },
                        failure : fnDone
                    });
                }
			});
		</script>
	</head>
	<body>
		11111111
	</body>
</html>
